package cn.qiyu5522.tk_ems.service;

import cn.qiyu5522.tk_ems.entity.Menu;
import cn.qiyu5522.tk_ems.entity.dto.MenuDTO;
import cn.qiyu5522.tk_ems.entity.dto.QueryParamDTO;
import cn.qiyu5522.tk_ems.result.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-27
 */
public interface MenuService extends IService<Menu> {

    R queryMenuListByCondition(QueryParamDTO<MenuDTO> queryParamDTO);

    R getMenuTree();

    R saveMore(List<MenuDTO> menuDTOs);

    R queryMenuListByRole();

    Integer queryChildrenMenuMaxId(Integer pid);

    R checkMenuIdIsExisting(Integer menuId);

    R checkIsRepeatForMenuTitle(String title);
}
